package com.thf.service;

import com.thf.model.PageModel;
import com.thf.model.ResultData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient(name = "user")
public interface UserService {
    @RequestMapping("/userFindAll")
    ResultData userFindAll(@RequestBody PageModel pageModel);
    @RequestMapping("/userFind")
    ResultData userFind(@RequestParam("startPage") Integer startPage, @RequestParam("pageSize") Integer pageSize,@RequestBody Map map);
    @RequestMapping("/getCount")
    Integer getCount(@RequestBody Map map);
    @RequestMapping("/add")
    ResultData add(@RequestBody Map map);
    @RequestMapping("/delete")
    ResultData delete(@RequestParam("stringToInt")Integer stringToInt);
    @RequestMapping("/getUserById")
    ResultData getUserById(@RequestParam("stringToInt")Integer stringToInt);
    @RequestMapping("/update")
    ResultData update(@RequestBody Map map);
    @RequestMapping("/updateEnadle")
    ResultData updateEnadle(@RequestParam("id")String id);
}
